package com.woniuxy.aspect;



import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

import java.lang.reflect.Method;

public class CookieAspect2 implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println("***买菜****");
        System.out.println("***切菜****");
        Object result=methodInvocation.proceed();//调用核心业务方法
        System.out.println("&&&洗碗&&&");
        return result;

    }
}
